<?php
/**
 * Created by PhpStorm.
 * User: cephei
 * Date: 12/23/15
 * Time: 4:57 PM
 */
namespace Plugins\QQACFetcher;

use Core\PluginContainer;

class Plugin_QQACFetcher{
    private $db;
    public function __construct()
    {
        $this->db = PluginContainer::getInstance()->singletonMake('database');
    }

    public function fetch(){
        $list = $this->db->get('select * from plg_qqacfetcher_acs');
        foreach($list as $item){
            $curl = PluginContainer::getInstance()->make('curl');
            $response = $curl->sendRequest($item->url);
        }
    }
}